package cn.jly.mybatis.mapper;

import cn.jly.mybatis.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lanyangji
 * @description 测试动态sql
 * @date 2020/11/17 下午 4:28
 */
public interface EmployeeMapperDynamicSql {
    List<Employee> selectByCondition(Employee employee);

    List<Employee> selectByConditionTrim(Employee employee);

    List<Employee> selectByConditionChoose(Employee employee);

    boolean updateById(Employee employee);

    List<Employee> selectByIdIn(List<Long> ids);

    int batchInsert(List<Employee> employees);

    int batchInsert2(@Param("emps") List<Employee> employees);

    List<Employee> selectByLastNameLikeBind(@Param("lastName") String lastName);
}
